package com.xiaochi.subject.common.enums;

import lombok.Getter;

/**
 * @author zqx
 * @since 2024/7/21
 * 删除枚举类
 */
@Getter
public enum CategoryTypeEnum {

    PRIMARY(1,"岗位大类"),
    SECOND(2,"二级分类");


    private int code;
    private String message;

    CategoryTypeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public static CategoryTypeEnum getResultCodeEnum(int code) {
        for (CategoryTypeEnum resultCodeEnum : CategoryTypeEnum.values()) {
            if (resultCodeEnum.getCode() == code) {
                return resultCodeEnum;
            }
        }
        return null;
    }
}
